package com.pacai.overload;

public class OverLoadExercise {
    public static void main(String[] args) {
        new Methods().m(10);
        new Methods().m(10,6);
        new Methods().m("as","bc");

    }
}


class Methods {
    public int m(int a) {
        return a * a;
    }

    public int m(int a, int b) {
        return a * b;
    }

    public void m(String a, String b) {
        System.out.println(a + b);
    }

    public int max(int a,int b){
        return a>b?a:b;
    }
    public double max(double a,double b){
        return a>b?a:b;
    }

    public double max(double a,double b,double c){
        double max = a > b ? a : b;
        return max > c ? max : c;
    }
}